package com.woniuxy.ticketmovie.controller;



import com.woniuxy.ticketmovie.entity.Ticket_movie_type;
import com.woniuxy.ticketmovie.service.Ticket_movie_typeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author movie
 * @since 2021-02-21
 */
@Controller
@RequestMapping("/ticket_movie_type")
public class Ticket_movie_typeController {

    @Autowired
    private Ticket_movie_typeService service;

    @RequestMapping("find")
    @ResponseBody
    public List<Ticket_movie_type> findall(){

        return service.list();
    }


}

